package com.mmm.station.entity;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * Created by mmm on 2016/11/8.
 */
//@JsonAutoDetect
public class User implements Serializable {

    private String name;

    private Integer age;

    private String password;

    private String role;

    public User() {

    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }



    //    public User(@JsonProperty("name") String name, @JsonProperty("age") Integer age, @JsonProperty("password") String password,@JsonProperty("role") String role) {
//        this.name = name;
//        this.age = age;
//        this.password = password;
//        this.role = role;
//    }
}
